//
//  NSString+TranslateAttributtedString.m
//  SMCategory
//
//  Created by Chirs on 2020/10/17.
//

#import "NSString+TranslateAttributtedString.h"

@implementation NSString (TranslateAttributtedString)

+ (NSMutableAttributedString *)translateAttributedStringWithOriginString:(NSString *)originString attributes:(nonnull NSDictionary<NSAttributedStringKey, id> *)attributes range:(NSRange)range {
    NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc] initWithString:originString];
    [attributedStr addAttributes:attributes range:range];
    return attributedStr;
}

@end
